Redis的安装,启动,关闭 | 您所在的位置:网站首页 › linux redis 无法关闭 › Redis的安装,启动,关闭 |
一,redis安装linux
1,安装gcc环境
yum -y install gcc-c++
2,上传压缩包到/usr/soft目录,并解压
cd /soft
tar -xvf redis-3.2.11.tar.gz
3,进入redis-5.0.7目录,使用make命令编译redis
[root@localhost soft]# cd redis-5.0.7
[root@localhost redis-5.0.7]# make
4,使用以下命令,将redis安装到/usr/local/redis指定的目录下
[root@localhost redis-5.0.7]# make PREFIX=/usr/local/redis install
5,将 redis.conf,sentinel.conf 复制过来
1)直接运行bin/redis-server以前端模式启动 2)后端模式 a,修改配置文件【daemonize ,IP】 如果想所有人连:bind 0.0.0.0 b,启动时指定配置文件 c,开放防火墙端口6379 运行redis.benchmark 命令 |
CopyRight 2018-2019 实验室设备网 版权所有 |